#ifndef __CCALL_FUNC_STEP_H__
#define __CCALL_FUNC_STEP_H__

#include "common.h"

class CCallFuncStep : public CCActionInterval
{
public:
    bool initWithDuration(float duration, float step, SEL_SCHEDULE selector);

    virtual CCObject* copyWithZone(CCZone* pZone);
    virtual void startWithTarget(CCNode *pTarget);
    virtual void update(float time);

public:
    static CCallFuncStep* actionWithDuration(float duration, float step, SEL_SCHEDULE selector);
    static CCallFuncStep* create(float duration, float step, SEL_SCHEDULE selector);

protected:
	SEL_SCHEDULE m_selector;
	float m_fStep;
	float m_fPreTime;
};

#endif  // __CCALL_FUNC_STEP_H__